<%-- 
    Document   : addOrder
    Created on : May 9, 2012, 3:53:00 PM
    Author     : ciummo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<script language="javascript" type="text/javascript" src="/DGestWebServer/SCRIPT/jquery.min.js"></script>
<script type="text/javascript" src="/DGestWebServer/SCRIPT/jquery.ui.core.js"></script>
<script type="text/javascript" src="/DGestWebServer/SCRIPT/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="/DGestWebServer/SCRIPT/ui.datepicker-it.js"></script>

<link href="/DGestWebServer/SCRIPT/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="/DGestWebServer/SCRIPT/ui.datepicker.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
    $(document).ready(function(){
        $('#datepickerId').datepicker({ dateFormat: 'dd/mm/yy' });
    });
</script>  


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="/DGestWebServer/css/dgest.css"/>
        <title><bean:message key="order.insertNew"/></title>
    </head>
    <body>
        
        <%@ include file="../adminDialogBar.jspf" %> 
        
        <h1><bean:message key="order.insertNew"/></h1>
        
        <div class="error">
            <html:errors />
        </div>
        
            <html:form action="Order?method=submitOrder" method="POST" enctype="multipart/form-data">
             
            <table class="center"><tbody>

                <div id="OrderInformation">
                                        
                    <tr>
                        <th><bean:message key="order.id"/>*: </th>
                        <td><html:text name="OrderActionForm" property="idOrdine" maxlength="10" /></td>
                    </tr>

                    <tr>
                        <th><bean:message key="order.incomingDate"/>*: </th>
                        
                        <td><div id="datepicker">
                            
                                <html:text name="OrderActionForm" property="dataEvasione" styleId="datepickerId" maxlength="10" /></div></td>
                    </tr>                               
                    
                    
                    <tr>
                        <th><bean:message key="order.paymentType"/>*: </th>
                    <td>
                    <html:select property="tipoPagamento" >
                    <html:option value="0"><bean:message key="order.paymentType"/></html:option>
                    <html:optionsCollection name="OrderActionForm" property="paymentList" label="title" value="title"/>
                    </html:select>
                    </td>
                    </tr>
                    
                    <tr>
                        <th><bean:message key="order.shipping"/>: </th>
                        <td> <html:checkbox name="OrderActionForm" property="resoFranco"></html:checkbox> </td>
                        
                    </tr>
                    
                    <tr>
                        <th><bean:message key="order.note"/>: </th>
                        <td><html:text name="OrderActionForm" property="note"/></td>
                    </tr>
            
                    </div>
                    

                    
                    
                    <tr>
                        <td>

                        </td>
                        <td>
                            <html:submit>
                                <bean:message key="button.submit"/>
                            </html:submit>
                        </td>
                    </tr>
                    
                    
                    
            </table></tbody>
                    
        </html:form>
        
            <html:link page="/Order.do?method=listOrders&view=all"><img src="/DGestWebServer/images/return.png" title="Ritorna alla lista Ordini" alt="Ritorna alla lista Ordini" height="50px" width="50px"/></html:link>

            
    </body>
</html>